var express = require('express');
var router = express.Router();
var mysql = require('mysql');
var md5 = require('md5');

var config = require('../../config/config.js');
var db = mysql.createPool({ host: config.host, user: config.user, password: config.password, database: config. database})


var responseData;

router.get('/',function (req, res, next) {
    responseData = {
        code: 0,
        message: ''
    };
    next()
});

// router.use(function(req, res, next) {
//     if (!req.session.user && req.url != '/login') {
//         res.render('admin/login')
//     } else {
//         next();
//     }

//     // console.log(req.url)
// })


router.get('/', function(req, res, next) {
    // res.render('admin/login');

    res.send('啊啊啊');
})




module.exports = router
